package cn.akira.domain.strategy.service.rule.chain;

import cn.akira.domain.strategy.service.rule.chain.factory.DefaultChainFactory;

/**
 * @author fjl95
 * @date 2025/5/15
 * @description 责任链接口,定义逻辑
 */
public interface ILogicChain {
    /**
     *
     * @param userId
     * @param strategyId
     * @return 奖品ID
     */
    DefaultChainFactory.StrategyAwardVO logic(String userId, Long strategyId);
    //增加链
    ILogicChain appendNext(ILogicChain next);
    //调用下一个链
    ILogicChain next();
}
